import request from '@/utils/request'

// 查询配送员列表
export function listDeliverMember(query) {
  return request({
    url: '/deliverMember/list',
    method: 'post',
    params: query
  })
}

// 查询配送员详细
export function getDeliverMember(id) {
  return request({
    url: '/deliverMember/' + id,
    method: 'get'
  })
}

// 新增配送员
export function addDeliverMember(data) {
  return request({
    url: '/deliverMember/add',
    method: 'post',
    data: data
  })
}

// 修改配送员
export function updateDeliverMember(data) {
  return request({
    url: '/deliverMember/edit',
    method: 'post',
    data: data
  })
}

// 删除配送员
export function delDeliverMember(ids) {
  return request({
    url: '/deliverMember/remove' ,
    method: 'post',
    data: ids
  })
}
